package cn.sytton.taffecloud.service.file.constants;

import cn.sytton.taffecloud.common.minio.constants.BucketType;

/**
 * 文件存储桶枚举类
 *
 * @author skyrock
 */
public enum FileBucket {
    /**
     * 临时桶
     */
    TEMP("temp", BucketType.PUBLIC);

    private final String name;
    private final BucketType type;
    FileBucket(String name, BucketType type) {
        this.name = name;
        this.type = type;
    }

    public BucketType getType() {
        return this.type;
    }

    @Override
    public String toString() {
        return this.name;
    }
}
